ActivityContract
inline fun <Activity : Activity> ActivityContract(noinline provideResultLauncher: Activity.() -> ActivityResultLauncher<Intent>): NavigationSpec.Activity.LaunchType.ActivityContract<Activity>
Creates an ActivityContract
Parameters
Activity
the type of android.app.Activity to provide the ActivityResultLauncher
provideResultLauncher
A callback method called on an instance of activityClass to provide an ActivityResultLauncher to launch the new activity with. Note that this method may be called after the instance of activityClass has been created.